package com.example.demo.service.impl;

import com.example.demo.entity.User;
import com.example.demo.entity.UserExample;
import com.example.demo.repository.RoleMapper;
import com.example.demo.repository.UserMapper;
import com.example.demo.service.RoleService;
import com.example.demo.service.UserService;
import com.example.demo.utils.Conver2MD5;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;


    @Override
    public Integer getRoleByUsername(String username) {
        return roleMapper.selectOne(username);
    }
}
